package com.ailanyin.admin.modules.system.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.ailanyin.common.model.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 定时任务执行日志
 *
 * @author ailanyin
 * @version 1.0
 * @since 2021/10/15 0015 上午 10:00
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysJobLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "日志序号")
    @Excel(name = "日志序号")
    private Long jobLogId;

    @ApiModelProperty(value = "任务名称")
    @Excel(name = "任务名称")
    private String jobName;

    @ApiModelProperty(value = "任务组名")
    @Excel(name = "任务组名")
    private String jobGroup;

    @ApiModelProperty(value = "调用目标字符串")
    @Excel(name = "调用目标字符串")
    private String invokeTarget;

    @ApiModelProperty(value = "日志信息")
    @Excel(name = "日志信息")
    private String jobMessage;

    @ApiModelProperty(value = "执行状态（0正常 1失败）")
    @Excel(name = "执行状态", replace = {"正常_0","失败_1"})
    private String status;

    @ApiModelProperty(value = "异常信息")
    @Excel(name = "异常信息")
    private String exceptionInfo;

    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @ApiModelProperty(value = "停止时间")
    private Date stopTime;

}
